import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {OrderManagementComponent} from './order-management.component';

const routes: Routes = [
    {path: '', component: OrderManagementComponent,
        children: [
            {path: '', redirectTo: 'ord-order', pathMatch: 'full'},
            {path: 'ord-order', loadChildren: './ord-order/ord-order.module#OrdOrderModule'},
            {path: 'ord-order-line', loadChildren: './ord-order-line/ord-order-line.module#OrdOrderLineModule'},
            {path: 'ord-refund', loadChildren: './ord-refund/ord-refund.module#OrdRefundModule'},
            // this line is use for generator path, don't remove
            {path: 'ord-pay-detail', loadChildren: './ord-pay-detail/ord-pay-detail.module#OrdPayDetailModule'},
            {path: 'ord-order-logistics', loadChildren: './ord-order-logistics/ord-order-logistics.module#OrdOrderLogisticsModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class OrderManagementRoutingModule {
}
